docker 启动时报必须要用root
docker 启动时报必须要用root
启动keepalived容器时,一直报错:
ipvs: Permission denied (you must be root)
Healthcheck child process(18973) died: Respawning
Keepalived[15]: Healthcheck child process(18973) died: Respawning
Starting Healthcheck child process, pid=18975
Keepalived[15]: Starting Healthcheck child process, pid=18975
Initializing ipvs 2.6
Keepalived_healthcheckers[18975]: Initializing ipvs 2.6
IPVS: Can't initialize ipvs: Permission denied (you must be root)
Keepalived_healthcheckers[18975]: IPVS: Can't initialize ipvs: Permission denied (you must be root)
Healthcheck child process(18975) died: Respawning
Keepalived[15]: Healthcheck child process(18975) died: Respawning
Starting Healthcheck child process, pid=18977
Keepalived[15]: Starting Healthcheck child process, pid=18977
Initializing ipvs 2.6
Keepalived_healthcheckers[18977]: Initializing ipvs 2.6
IPVS: Can't initialize ipvs: Permission denied (you must be root)
Keepalived_healthcheckers[18977]: IPVS: Can't initialize ipvs: Permission denied (you must be root)
Healthcheck child process(18977) died: Respawning
Keepalived[15]: Healthcheck child process(18977) died: Respawning
Starting Healthcheck child process, pid=18979
Keepalived[15]: Starting Healthcheck child process, pid=18979
Initializing ipvs 2.6
Keepalived_healthcheckers[18979]: Initializing ipvs 2.6
IPVS: Can't initialize ipvs: Permission denied (you must be root)
Keepalived_healthcheckers[18979]: IPVS: Can't initialize ipvs: Permission denied (you must be root)
Healthcheck child process(18979) died: Respawning
Keepalived[15]: Healthcheck child process(18979) died: Respawning
Starting Healthcheck child process, pid=18981
Keepalived[15]: Starting Healthcheck child process, pid=18981
Initializing ipvs 2.6
Keepalived_healthcheckers[18981]: Initializing ipvs 2.6
IPVS: Can't initialize ipvs: Permission denied (you must be root)
Keepalived_healthcheckers[18981]: IPVS: Can't initialize ipvs: Permission denied (you must be root)
Healthcheck child process(18981) died: Respawning
Keepalived[15]: Healthcheck child process(18981) died: Respawning
Starting Healthcheck child process, pid=18983
Keepalived[15]: Starting Healthcheck child process, pid=18983
Initializing ipvs 2.6
Keepalived_healthcheckers[18983]: Initializing ipvs 2.6
IPVS: Can't initialize ipvs: Permission denied (you must be root)
Keepalived_healthcheckers[18983]: IPVS: Can't initialize ipvs: Permission denied (you must be root)
Healthcheck child process(18983) died: Respawning
Keepalived[15]: Healthcheck child process(18983) died: Respawning
Starting Healthcheck child process, pid=18985
Keepalived[15]: Starting Healthcheck child process, pid=18985
Initializing ipvs 2.6
Keepalived_healthcheckers[18985]: Initializing ipvs 2.6
IPVS: Can't initialize ipvs: Permission denied (you must be root)
Keepalived_healthcheckers[18985]: IPVS: Can't initialize ipvs: Permission denied (you must be root)
Healthcheck child process(18985) died: Respawning
Keepalived[15]: Healthcheck child process(18985) died: Respawning
Starting Healthcheck child process, pid=18987
Keepalived[15]: Starting Healthcheck child process, pid=18987
Initializing ipvs 2.6
Keepalived_healthcheckers[18987]: Initializing ipvs 2.6
IPVS: Can't initialize ipvs: Permission denied (you must be root)
2017-07-15T23:31:24.663548
解决方法是在启动container时加入参数–privileged=true, 来开启被禁用的能力
如果是mac用户,直接在katnatic的设置中勾选Privileged模式就行了。